import request from "@/apps/admin/units/request"
import {HttpResultData} from "@/types/project";


/**
 * 获取配置系统配置
 */
export const getConfigureApi = (): Promise<HttpResultData<any>> => request(`/basics/configure`, {}, 'GET', {tips: false})


/**
 * 登录刷新
 * @returns {*}
 */
export const loginRefreshApi = (): Promise<HttpResultData<any>> => request(`/basics/login-refresh`, {}, 'GET', {tips: false})


/**
 * 获取系统信息
 */
export const getSystemInfoApi = (): Promise<HttpResultData<any>> => request(`/basics/system-info`)


/**
 * 获取日志大小
 */
export const getLoggerSizeApi = (): Promise<HttpResultData<any>> => request(`/basics/logger-size`)